<!-- 分页 公共页(生成新引用页) -->
<!-- 引用前必须建立pageView对象-->
<DIV class="pg" xmlns:th="http://www.thymeleaf.org" th:if="${pageView.totalrecord!=0}">
    <span class="count" th:text="'共'+${pageView.totalrecord}+'条'"></span>

    <A class="prev" th:href="@{${pageView.onUrl}}" th:if="${pageView.currentpage!=1}">上一页</A>
    <span th:each="index:${#numbers.sequence(1, pageView.totalpage)}">
    <A class=last href="javascript:topage('1');" title="第1页" th:if="${pageView.startindex >1}">1 ...</A>


    <STRONG th:if="${pageView.currentpage == index}" th:text="${index}"></STRONG>

    <A th:if="${pageView.currentpage != index}" th:href="'javascript:topage('+'\''+${index}+'\''+')'"
       th:title="'第'+${index}+'页'" th:text="${index}"></A></span>


    <A class=last th:href="'javascript:topage('+'\''+${pageView.totalpage}+'\''+')'"
       th:title="'第'+${pageView.totalpage}+'页'" th:if="${pageView.endindex < pageView.totalpage}"
       th:text="'... '+${pageView.totalpage}"></A>


    <LABEL>
        <INPUT onkeydown="if(event.keyCode==13) {topage(this.value);}" class="pg_input" title="输入页码，按回车跳转"
               th:value="${pageView.currentpage}" size="2">
        <SPAN th:title="' / '+${pageView.totalpage}+'页'" th:text="' / '+${pageView.totalpage}+'页'"></SPAN>
    </LABEL>

    <A class=nxt th:href="@{${pageView.nextUrl}}"
       th:if="${pageView.endindex>1 and pageView.currentpage != pageView.totalpage}">下一页</A>

</DIV>